package com.xiangyang.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

//供应商
@Data
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder
@TableName(value = "supplier")
public class Supplier extends BaseEntity{
    @TableId(value = "vendor_id",type = IdType.AUTO)
    private Long vendorId; //供应商id
    private String VendorName; //供应商名称
    private String vendorAddress; //供应商地址
    private String vendorHead; //供应商负责人
    private String vendorPhone;  //供应商联系方式
    private String vendorNote; //供应商备注
      @Override
    public Long getId() {
        return getVendorId();
    }

    @Override
    public void setId(Long vendorId) {
        setvendorId(vendorId);
    }



    public void setvendorId(Long vendorId) {
        this.vendorId = vendorId;
        // 同步设置 BaseEntity 的 id
        super.setId(vendorId);
    }
}

